from fastapi import APIRouter, Depends, HTTPException
from sqlalchemy.orm import Session
from typing import List
from app.core.database import get_db
from app import models

router = APIRouter()

@router.get("/")
def read_users(db: Session = Depends(get_db)):
    return db.query(models.User).all()